package Pre.treeMap;

import java.util.Properties;

public class PropertiesTest {
    public static void main(String[] args) {
        //创建对象
        Properties properties = new Properties();
        //数值属性值
        properties.setProperty("username","kfm");
        properties.setProperty("password","kaifamiao");
        //获取属性值
        String username = properties.getProperty("username");
        String password = properties.getProperty("password");

        System.out.println("username:" + username);
        System.out.println("password:" + password);
    }
}
